package com.oracle.oa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;



@Entity                        
@Table(name="operatelog")
public class Operatelog  implements java.io.Serializable {
	 
	 private static final long serialVersionUID = 1L;
	 
	 @GenericGenerator(name = "generator", strategy = "increment")
	 @Id
	 @GeneratedValue(generator = "generator")
	 @Column(name = "operateid", unique = true, nullable = false)   
     private int operateid;
	 
	 @ManyToOne
	 @JoinColumn(name = "userinfo_id")
     private Userinfo userinfo;
	 
	 @Column(name = "operatenname")
     private String operatenname;
	 
	 @Column(name = "objectid")
     private String objectid;
	 
	 @Column(name = "operatedesc")
     private String operatedesc;
	 
	 @Column(name = "operatetime")
     private String operatetime;
	 
	public int getOperateid() {
		return operateid;
	}
	public void setOperateid(int operateid) {
		this.operateid = operateid;
	}
	public Userinfo getUserinfo() {
		return userinfo;
	}
	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}
	public String getOperatenname() {
		return operatenname;
	}
	public void setOperatenname(String operatenname) {
		this.operatenname = operatenname;
	}
	public String getObjectid() {
		return objectid;
	}
	public void setObjectid(String objectid) {
		this.objectid = objectid;
	}
	public String getOperatedesc() {
		return operatedesc;
	}
	public void setOperatedesc(String operatedesc) {
		this.operatedesc = operatedesc;
	}
	public String getOperatetime() {
		return operatetime;
	}
	public void setOperatetime(String operatetime) {
		this.operatetime = operatetime;
	}
	public Operatelog(int operateid, Userinfo userinfo, String operatenname,
			String objectid, String operatedesc, String operatetime) {
		this.operateid = operateid;
		this.userinfo = userinfo;
		this.operatenname = operatenname;
		this.objectid = objectid;
		this.operatedesc = operatedesc;
		this.operatetime = operatetime;
	}
	public Operatelog() {
		super();
	}
	@Override
	public String toString() {
		return "Operatelog [operateid=" + operateid + ", userinfo=" + userinfo
				+ ", operatenname=" + operatenname + ", objectid=" + objectid
				+ ", operatedesc=" + operatedesc + ", operatetime="
				+ operatetime + "]";
	}


}